﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" AutoEventWireup="true"
    CodeFile="TaskMonthDetail.aspx.cs" Inherits="Evaluate_TaskMonthDetail" StylesheetTheme="Content" %>

<%@ Register Src="../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel runat="server" ID="upp">
        <ContentTemplate>
            <ul class="topmenu" id="tm" runat="server">
                <li>单位：</li>
                <li>
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged"
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True" Value="2">大队</asp:ListItem>
                        <asp:ListItem Value="3">中队</asp:ListItem>
                    </asp:RadioButtonList>
                </li>
                <li>&nbsp;<asp:DropDownList ID="DepartmentList" runat="server" DataTextField="AliasName"
                    DataValueField="DepartmentId">
                </asp:DropDownList>
                </li>
                <li>年份：<asp:DropDownList ID="YearList" runat="server">
                </asp:DropDownList>
                    <asp:DropDownList ID="MonthList" runat="server">
                    </asp:DropDownList>
                </li>
                <li>
                    <asp:LinkButton ID="lbn" runat="server" OnClick="lbn_Click">查看</asp:LinkButton>
                </li>
            </ul>
        </ContentTemplate>
        <Triggers>
          <asp:PostBackTrigger ControlID="lbn" />
        </Triggers>
    </asp:UpdatePanel>
    <div runat="server" id="divPromt" style="padding: 2px 6px; border: solid 1px #FEDBB5;
        margin: 4px 0; background-color: #FFFCDC">
        计算公式：（任务总得分/任务总分）*
        <asp:Label runat="server" ID="lblPerent"></asp:Label>
        %（占总分）*
        <asp:Label runat="server" ID="lblTotle"></asp:Label>
        <br />
        计算过程：
        <asp:Label runat="server" ID="lblGS" ForeColor="Red"></asp:Label>
    </div>
    <asp:GridView ID="GV" runat="server" AutoGenerateColumns="False" DataKeyNames="TaskID"
        Caption="<span>任务列表</span>" OnRowDataBound="gvChemical_RowDataBound" AllowPaging="True"
        PageSize="8" OnRowCommand="GV_RowCommand">
        <Columns>
            <asp:TemplateField>
                <HeaderStyle HorizontalAlign="Left" Width="5%" />
                <ItemTemplate>
                    <asp:Label runat="server" ID="lblID"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="任务名称">
                <ItemTemplate>
                    <asp:LinkButton runat="server" ID="lbtnView" CommandName="View" CommandArgument='<%# Eval("TaskID") %>'></asp:LinkButton>
                    <asp:Label runat="server" ID="lblCreateInfo"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="完成情况">
                <ItemTemplate>
                    <asp:Label runat="server" ID="Circs"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="得分">
                <ItemTemplate>
                    <asp:Label runat="server" ID="Sorce"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="审核">
                <ItemTemplate>
                    <asp:CheckBox runat="server" ID="cb" Enabled="false" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <RowStyle HorizontalAlign="Left" />
        <HeaderStyle HorizontalAlign="Left" />
        <PagerTemplate>
        </PagerTemplate>
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" runat="server" PageSize="8" OnPageSizeChange="ListPageContral1_PageSizeChange" />
    <br />
    <br />
    <table border="0" cellpadding="0" cellspacing="0" class="dialog" width="100%">
        <caption>
            <span>查看任务</span></caption>
        <tr>
            <td>
                <asp:Literal ID="Body" runat="server" EnableViewState="False"></asp:Literal>
            </td>
        </tr>
    </table>
</asp:Content>
